const TOKENKEY = 'heima-toutiao-token'

const saveToken = arr => {
  localStorage.setItem(TOKENKEY, JSON.stringify(arr))
}
const removeToken = () => {
  localStorage.removeItem(TOKENKEY)
}
const getToken = () => {
  return JSON.parse(localStorage.getItem(TOKENKEY))
}
export { saveToken, removeToken, getToken }
import { mapMutations,mapGetters,mapState,mapActions } from 'vuex'
// methods:{ ...mapMutations(['属性1']), ...mapActions(['属性1']),},
// computed:{ ...mapGetters(['Getter属性1']),...mapState(['state属性1'])}
